<template>
  <el-dialog
    width="70%"
    title="耗时详情"
    :visible="dialogVisible"
    :append-to-body="appendToBody"
    @close="close"
  >
    <div>
      <codemirror
        ref="codemirror"
        :value="hotStandbyTimeData"
        :editor-height="600"
        :read-only="true" 
      />
    </div>
    <span
      slot="footer"
      class="dialog-footer"
      style="text-align: center;"
    >
      <el-button
        type="primary"
        @click="close"
      >关闭</el-button>
    </span>
  </el-dialog>
</template>

<script>
import codemirror from '@/components/codemirror/codemirror.vue'
export default {
  components: {
    codemirror
  },
  props: {
    dialogVisible: Boolean,
    hotStandbyTimeData: String,
    appendToBody: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {

    }
  },
  methods: {
    close() {
      this.$emit('close')
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
